<g:formRemote name="registerForm" url="[action:'update']" onSuccess="${remoteFunction(controller:'investments',action:'allpast',update:'main')}">
  <g:hiddenField name="id" value="${sell.id}" />
  <table>
    <tr>
      <td class="leftside">
        Number of stocks:
      </td>
      <td class="rightside">
    <g:textField name="count" value="${sell.count}" size="10" />
    </td>
    </tr>
    <tr>
      <td class="leftside">
        price per stock (SEK):
      </td>
      <td class="rightside">
    <g:textField name="price" value="${sell.price}" size="10" />
</td>
</tr>
<tr>
<td class="leftside">

</td>
<td class="rightside">
<g:submitButton name="save" value="Save" /> 
<input type="button" value="Cancel" onClick="<g:remoteFunction controller='investments' action='past' id='${sell.id}' update='sell_${sell.id}' />" />
</td>
</tr>
</table>
</g:formRemote>
